﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JibberJabber.PartDesigners;

namespace JibberJabber.LivePreviews
{
    public static class LivePreview
    {
        // Try and have one overload of Preview with different parameters per
        //  PreviewTemplate, mmk?

        public static void Preview(SpeakerDesigner sd)
        {
            if (sd != null) // It's only polite, considering what's going on out there...
                new SpeakerPreview(sd).RunPreview();
        }

        public static void Preview(TextPartDesigner tpd)
        {
            if (tpd != null)
                new TextPreview(tpd).RunPreview();
        }
    }
}
